const express = require('express');
const router = express.Router();
const expressJoi = require('@escook/express-joi')
const {findUserListCheck, updateUserListCheck, deleteUserListCheck} = require('../utils/check')
const userListController = require('../controllers/userListController')

// 用户列表查询接口
router.get('/userList', expressJoi(findUserListCheck), userListController.userList)

// 用户修改接口
router.get('/update', expressJoi(updateUserListCheck), userListController.updateUserListById)

// 用户删除接口
router.get('/delete', expressJoi(deleteUserListCheck), userListController.deleteUserListById)

module.exports = router;